package com.swz.dcrm.ui.approval;

import com.flyco.tablayout.listener.CustomTabEntity;
import com.swz.dcrm.R;

public class CommonTabEntity implements CustomTabEntity {
    String title;
    private boolean isNeedMsg;

    public CommonTabEntity(String title ,boolean isNeedMsg){
        this.title=title;
        this.isNeedMsg=isNeedMsg;
    }
    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
       if(isNeedMsg){
           return R.drawable.shape_white;
       }else {
           return 0;
       }
    }

    @Override
    public int getTabUnselectedIcon() {
        if(isNeedMsg){
            return R.drawable.shape_white;
        }else {
            return 0;
        }
    }
}
